package com.chenglai.seckill.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

/**
 * @author rxh
 * 团购主表
 */
@ApiModel(value = "t_cl_gorupOn_Info")
@Table(name = "t_cl_gorupOn_Info")
public class GroupOnInfo implements Serializable {


    /**
     * 主键
     */
    @Id
    @Column(name = "groupInfo_id", updatable = false)
    @ApiModelProperty(value = "主键")
    private Integer groupInfoId;

    /**
     * 团名称
     */
    @Column(name = "group_name")
    @ApiModelProperty(value = "团名称")
    private String groupName;

    /**
     * 商品Id
     */
    @Column(name = "goods_id")
    @ApiModelProperty(value = "商品Id")
    private Integer goodsId;

    /**
     * 门店ID
     */
    @Column(name = "shop_id")
    @ApiModelProperty(value = "门店ID")
    private Integer shopId;

    /**
     * 团长ID
     */
    @Column(name = "user_id")
    @ApiModelProperty(value = "团长ID")
    private Integer userId;

    /**
     * 开始时间
     */
    @Column(name = "start_time")
    @ApiModelProperty(value = "开始时间")
    private String startTime;

    /**
     * 结束时间
     */
    @Column(name = "end_time")
    @ApiModelProperty(value = "结束时间")
    private String endTime;

    /**
     * 0：已开团 1：未成团已结束 2：已成团 3：成团失败
     */
    @Column(name = "status")
    @ApiModelProperty(value = "0：已开团 1：未成团已结束 2：已成团 3：成团失败")
    private Integer status;

    private List<GroupOnDetail> detailList;

    public Integer getGroupInfoId() {
        return groupInfoId;
    }

    public void setGroupInfoId(Integer groupInfoId) {
        this.groupInfoId = groupInfoId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }


    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }


    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }


    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<GroupOnDetail> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<GroupOnDetail> detailList) {
        this.detailList = detailList;
    }
}
